package com.epsilon.commons.context.login.view;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Button;

public class LoginComposite extends Composite {
	private Text	txtUsuario;
	private Text	txtClave;
	private Button	btnCancelar;
	private Button	btnAceptar;
	private Label	lblUsuario;
	private Label	lblClave;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public LoginComposite( Composite parent, int style ) {
		super( parent, style );

		txtUsuario = new Text( this, SWT.BORDER );
		txtUsuario.setBounds( 0, 19, 262, 19 );

		lblUsuario = new Label( this, SWT.NONE );
		lblUsuario.setBounds( 0, 0, 262, 13 );
		lblUsuario.setText( "Usuario:" );

		lblClave = new Label( this, SWT.NONE );
		lblClave.setBounds( 0, 44, 262, 13 );
		lblClave.setText( "Clave:" );

		txtClave = new Text( this, SWT.BORDER | SWT.PASSWORD );
		txtClave.setBounds( 0, 63, 262, 19 );

		btnCancelar = new Button( this, SWT.NONE );
		btnCancelar.setBounds( 120, 88, 68, 23 );
		btnCancelar.setText( "Cancelar" );

		btnAceptar = new Button( this, SWT.NONE );
		btnAceptar.setBounds( 194, 88, 68, 23 );
		btnAceptar.setText( "Aceptar" );

	}

	@Override
	protected void checkSubclass() {

	}

	public Text getTxtUsuario() {
		return txtUsuario;
	}

	public Text getTxtClave() {
		return txtClave;
	}

	public Button getBtnCancelar() {
		return btnCancelar;
	}

	public Button getBtnAceptar() {
		return btnAceptar;
	}

	public Label getLblUsuario() {
		return lblUsuario;
	}

	public Label getLblClave() {
		return lblClave;
	}
}